package main

import "fmt"

type Employee struct {
	string //匿名字段
	int
}

func main()  {
	e2:=Employee{int:30,string:"李小花"}
	fmt.Println(e2) //{李小花 30}
	fmt.Println(e2.string) //李小花
}
	s2:= struct {
		name string
		age int
	}{
		name:"王二狗",
		age:30,
	}
	fmt.Println(s2) //{王二狗 30}


}
